# coding: UTF-8
# Filename : 
# Company : imedia
# Author : 
# -*-coding:utf-8 -*-
import cPickle as p
#存储对象到文件
record_file = 'record.data'
def store_obj(obj):
    f = file(record_file, 'w')
    p.dump(obj, f)
    f.close()
#获得存储文件中数据
def get_obj():
    f = file(record_file)
    obj = p.load(f)
    f.close()
    return obj

dict = {}
store_obj(dict)